package testYear;

public class Year {
    private int year;

    public Year(int year) {
        this.year = year;
    }

    public String isLeap() {
        String leap = "";
        if (year % 4 == 0) {
            if (year % 100 == 0) {
                leap = year % 400 == 0 ? "闰年" : "平年";
            } else {
                leap = "闰年";
            }
        } else {
            leap = "平年";
        }

        return leap;
    }

    public static void main(String[] args) {
        System.out.println("Year");
    }


}
